package com.service.impl;

import com.dao.MysertDao;
import com.dao.impl.MysertDaoImpl;
import com.domain.Mysert;
import com.service.MysertService;

import java.util.ArrayList;

public class MysertServiceImpl implements MysertService {
    private final MysertDao dao = new MysertDaoImpl();
    @Override
    public Boolean save(Mysert mysert) {

        return dao.save(mysert);
    }

    @Override
    public Boolean delete(int id) {

        return dao.delete(id);
    }

    @Override
    public ArrayList<Mysert> select() {

        return dao.select();
    }

    @Override
    public Boolean update(Mysert mysert) {
        return dao.update(mysert);
    }

    @Override
    public ArrayList<Mysert> selectByDate(String date) {

        return dao.selectByDate(date);
    }
}
